package nc.ui.wa.CommissionSum.view;

import nc.bs.hrss.pub.BillCoderUtils;
import nc.ui.hr.uif2.view.HrBillFormEditor;
import nc.ui.pub.bill.BillItem;

@SuppressWarnings("serial")
public class CardFormCommissionSum extends HrBillFormEditor {

	private String code;
	public final String BILLCODETYPE = "6101";

	@SuppressWarnings("restriction")
	@Override
	protected void setDefaultValue() {
		super.setDefaultValue();
		setBillCode();
	}

	@SuppressWarnings("restriction")
	public void setBillCode() {
		BillItem item = getBillCardPanel().getHeadItem("billcode");
		code = BillCoderUtils.getBillCode(getModel().getContext()
				.getPk_group(), getModel().getContext().getPk_org(), BILLCODETYPE);
		if (item != null) {
			item.setValue(code);
		}
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}
	


}
